<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>阀值增加</title>
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/defalut.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/public.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/ddspstyle.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/icon.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/WdatePicker/skin/WdatePicker.css">
<script type="text/javascript" src="../../static/js/jquery.min.js"></script>
<script type="text/javascript" src="../../static/js/jquery.easyui.min.js"></script>
<script type="text/javascript"	src="../../static/js/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../static/js/jquery.validate.js"></script>
<script type="text/javascript" src="../../static/js/index.js"></script>
<script type="text/javascript" src="../../static/js/WdatePicker/WdatePicker.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

<script type="text/javascript">
	$(function() {
		$("#contentForm").validate({
			rules: {
			/* f_cc_desc: {
				required: true
			}, */
			f_itv_customName:{
					required:true
				}
		},
		messages: {
			f_itv_customName:{
				required:"请选择组织"
			}
		}
			
		});
	});

	function _submitFm() {
		app_ajax('../../industry/threshold/addThreshold.do', $("#contentForm").serialize(), function(data) {
				if (data.success) {
					$.messager.progress('close');
					$.messager.alert('提示', '提交成功！', 'info', function() {
						parent.$('#dlg').dialog('close');
						parent.gotoSearch($('#easyui-treegrid'));
					});
				} else {
					$.messager.alert('提示', data.result, 'info', function() {
						$.messager.progress('close');
					});
				}
		});
	}
	
	function bind() {
		openDialog($('#org_list'),'../behavior_control/org_update.jsp?idField=f_itv_customId&nameField=f_itv_customName');
	}
</script>
<style type="text/css">
</style>
</head>

<body class="overfwidth">
	<div class="barnavtop">您所在的位置：阀值管理 &gt; 阀值新增</div>
	<div id="workspace">
		<!--主体 开始-->
		<div id="container-1">
			<div class="editspace">
				<form id="contentForm" class="cmxform" enctype="multipart/form-data" name="formName">
					<input type="hidden" id="f_itv_id" name="f_itv_id" value="0"/>
					<legend style="text-align: center; margin: 0 auto;">阀值新增</legend>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										<span class="red">*</span>客户选择:
									</td>
									<td width="30%">
										<input name="f_itv_customName" id="f_itv_customName" readonly="readonly"	style="width: 150px;" value="" class="yl_inp yw_name" />
										<input name="f_itv_customId" id="f_itv_customId" type="hidden" value="0" />  
										<input name="status" id="status" type="hidden" value="nochange" />  
										<a id="12" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0);"
											onclick="bind();">选择</a>
									</td>
								</tr>
							</table>
						</div>
					</fieldset> 
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										华为阀值:
									</td>
									<td width="30%">
										<input id="f_itv_thesholdHW" name="f_itv_thesholdHW" value="0" class="yl_inp yw_name" />
										<span id="f_itv_thesholdHW_tip" class="tip"></span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										华为已用阀值:
									</td>
									<td width="30%">
										<input id="f_itv_useHWSize" name="f_itv_useHWSize" value="0" class="yl_inp yw_name" />
										<span id="f_itv_useHWSize_tip" class="tip"></span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										中兴阀值:
									</td>
									<td width="30%">
										<input id="f_itv_thesholdZTE" name="f_itv_thesholdZTE" value="0" class="yl_inp yw_name" />
										<span id="f_itv_thesholdZTE_tip" class="tip"></span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										中兴已用阀值:
									</td>
									<td width="30%">
										<input id="f_itv_useZTESize" name="f_itv_useZTESize" value="0" class="yl_inp yw_name" />
										<span id="f_itv_useZTESize_tip" class="tip"></span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										&nbsp;阀值状态:
									</td>
									<td width="30%">
										<select id="f_itv_status" name="f_itv_status" style="width: 150px;">
											<option value="1">生效</option>
											<option value="2">无效</option>
										</select>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<div class="toolbar" style="text-align: center;">
						<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
							href="javascript:void(0);" onclick="_submitFm()">保存</a> <a
							href="javascript:void(0);" data-options="iconCls:'icon-cancel'"
							class="easyui-linkbutton"
							onclick="javascript:parent.$('#dlg').dialog('close')">取消</a>
					</div>
				</form>
			</div>
		</div>
		<!--主体 结束-->
	</div>
	<div id="org_list" class="easyui-dialog"
		style="width: 600px; height: 500px; padding-top: 0px;"
		data-options="title:'客户选择', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
</body>
</html>
